<?php
// $Id: node.tpl.php,v 1.4.2.4 2011/02/18 05:26:30 andregriffin Exp $
?>
<?php if (!$page): ?>
  <article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php endif; ?>
    <div class="content truc-crane"<?php print $content_attributes; ?>">
        <div class="truc-crane-images">
          <?php print render($content['field_product_image']); ?>          
        </div>
        <div class="truc-crane-body">
          <?php print render($content['body']); ?>
          
          <div class="parameters">
            <table class="truc_cranes_table">
               <tbody>
                 <tr>
                   <td colspan="2">
                      <p class="prod_head">Основные характеристики</p>
                   </td>                 
                 </tr>
                 <tr>
                   <td class="left_td">
                     <?php print $content['field_lifting']['#title']; ?>
                   </td>
                   <td>
                    <?php print $content['field_lifting']['#items']['0']['value']; ?>
                   </td>
                 </tr>
                 <tr>
                   <td class="left_td">
                     <?php print $content['field_outreach']['#title']; ?>
                   </td>
                   <td>
                    <?php print $content['field_outreach']['#items']['0']['value']; ?>
                   </td>
                 </tr>
                 <tr>
                   <td class="left_td">
                     <?php print $content['field_lifting_height']['#title']; ?>
                   </td>
                   <td>
                    <?php print $content['field_lifting_height']['#items']['0']['value']; ?>
                   </td>
                 </tr>  
                 <tr>
                   <td class="left_td">
                     <?php if (isset($content['field_shassi'])) {print $content['field_shassi']['#title'];} ?>
                   </td>
                   <td>
                    <?php if (isset($content['field_shassi'])) {print $content['field_shassi']['#items']['0']['value'];} ?>
                   </td>
                 </tr>             
                 <tr>
                   <td colspan="2">
                      <p class="prod_head">Подъемные характеристики</p>
                   </td>                 
                 </tr>
                 <tr>
                   <td class="left_td">
                     <?php if (isset($content['field_arrows'])) {print $content['field_arrows']['#title'];} ?>
                   </td>
                   <td>
                    <?php if (isset($content['field_arrows'])) {print $content['field_arrows']['#items']['0']['value'];} ?>
                   </td>
                 </tr>
                 <tr>
                   <td class="left_td">
                     <?php if (isset($content['field_arrow_length'])) {print $content['field_arrow_length']['#title'];} ?>
                   </td>
                   <td>
                    <?php if (isset($content['field_arrow_length'])) {print $content['field_arrow_length']['#items']['0']['value'];} ?>
                   </td>
                 </tr>
                 <tr>
                   <td class="left_td">
                     <?php if (isset($content['field_work_zone'])) {print $content['field_work_zone']['#title'];} ?>
                   </td>
                   <td>
                    <?php if (isset($content['field_work_zone'])) {print $content['field_work_zone']['#items']['0']['value'];} ?>
                   </td>
                 </tr>
                 <tr>
                   <td colspan="2">
                      <p class="prod_head">Геометрические размеры</p>
                   </td>                 
                 </tr>
                 <tr>
                   <td class="left_td">
                     <?php if (isset($content['field_length'])) {print $content['field_length']['#title'];} ?>
                   </td>
                   <td>
                    <?php if (isset($content['field_length'])) {print $content['field_length']['#items']['0']['value'];} ?>
                   </td>
                 </tr>
                 <tr>
                   <td class="left_td">
                     <?php if (isset($content['field_width'])) {print $content['field_width']['#title'];} ?>
                   </td>
                   <td>
                    <?php if (isset($content['field_width'])) {print $content['field_width']['#items']['0']['value'];} ?>
                   </td>
                 </tr>
                 <tr>
                   <td class="left_td">
                     <?php if (isset($content['field_height'])) {print $content['field_height']['#title'];} ?>
                   </td>
                   <td>
                    <?php if (isset($content['field_height'])) {print $content['field_height']['#items']['0']['value'];} ?>
                   </td>
                 </tr>
                 
               </tbody>
            </table>  
          </div>
          
          <div class="lifting_image">
             <?php print render($content['field_lifting_image']); ?>  
          </div>
        
         <div class="footer-trac_cranes"> 
          <?php print $content['field_liftings']['#title']; ?>:
          <?php print l($content['field_liftings']['#items']['0']['taxonomy_term']->name,'products/truck-cranes',array('query' => array('field_product_vendor_tid' => 'All','field_liftings_tid'=>$content['field_liftings']['#items']['0']['taxonomy_term']->tid))); ?><br>
          
          <?php print $content['field_product_vendor']['#title']; ?>:
          <?php print l($content['field_product_vendor']['#items']['0']['taxonomy_term']->name,'products/truck-cranes',array('query' => array('field_product_vendor_tid' => $content['field_product_vendor']['#items']['0']['taxonomy_term']->tid,'field_liftings_tid'=>'All')));?><br> 
        </div>
                  
        </div>
                
    </div>    
<?php if (!$page): ?>
  </article>
<?php endif; ?> <!-- /.node -->    


